{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "file_path = './bad_cargoName.csv'\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "outputs": [
    {
     "data": {
      "text/plain": "                                                text text.1\n0  S:到哪里的？\\nD:到哪里啊？到芜湖的芜湖官司的。\\nS:啊，丸子的是吧？嗯，装那个$$木...      是\n1  D:啊，你那地方叫什么？\\nS:嗯。\\nS:15林华$$石河子$$15林华。\\nD:石河。\\...     不是\n2  S:喂，哎你好。\\nD:你那个广元到那个啥？\\nD:啊，八道$$龙门$$交嘛是吧？\\nS:广...     不是\n3  D:啊，对对对对，那你咋知道呢？\\nS:啊。\\nS:振华$$空气炸锅$$还是什么之类的。\\n...      是\n4  D:知道吧？\\nS:啊，上车也是。\\nS:$$大润发$$。\\nS:啊，你好。\\nD:463啊。\\n     不是",
      "text/html": "<div>\n<style scoped>\n    .dataframe tbody tr th:only-of-type {\n        vertical-align: middle;\n    }\n\n    .dataframe tbody tr th {\n        vertical-align: top;\n    }\n\n    .dataframe thead th {\n        text-align: right;\n    }\n</style>\n<table border=\"1\" class=\"dataframe\">\n  <thead>\n    <tr style=\"text-align: right;\">\n      <th></th>\n      <th>text</th>\n      <th>text.1</th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <th>0</th>\n      <td>S:到哪里的？\\nD:到哪里啊？到芜湖的芜湖官司的。\\nS:啊，丸子的是吧？嗯，装那个$$木...</td>\n      <td>是</td>\n    </tr>\n    <tr>\n      <th>1</th>\n      <td>D:啊，你那地方叫什么？\\nS:嗯。\\nS:15林华$$石河子$$15林华。\\nD:石河。\\...</td>\n      <td>不是</td>\n    </tr>\n    <tr>\n      <th>2</th>\n      <td>S:喂，哎你好。\\nD:你那个广元到那个啥？\\nD:啊，八道$$龙门$$交嘛是吧？\\nS:广...</td>\n      <td>不是</td>\n    </tr>\n    <tr>\n      <th>3</th>\n      <td>D:啊，对对对对，那你咋知道呢？\\nS:啊。\\nS:振华$$空气炸锅$$还是什么之类的。\\n...</td>\n      <td>是</td>\n    </tr>\n    <tr>\n      <th>4</th>\n      <td>D:知道吧？\\nS:啊，上车也是。\\nS:$$大润发$$。\\nS:啊，你好。\\nD:463啊。\\n</td>\n      <td>不是</td>\n    </tr>\n  </tbody>\n</table>\n</div>"
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df = pd.read_csv(file_path)\n",
    "df.head()\n"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "outputs": [
    {
     "data": {
      "text/plain": "0    S:到哪里的？\\nD:到哪里啊？到芜湖的芜湖官司的。\\nS:啊，丸子的是吧？嗯，装那个$$木...\n3    D:啊，对对对对，那你咋知道呢？\\nS:啊。\\nS:振华$$空气炸锅$$还是什么之类的。\\n...\n6    S:喂。\\nD:那你去年拉那个$$水泥杆子$$拉。\\nS:有啊，一吨江苏的降低。\\nD:好多...\n7    D:拉什么那？\\nS:装那个嗯。\\nS:装那个$$除尘设备$$。\\nD:给多少钱？\\nS:哎...\n9    D:我看你发的是无效到临沂的吧？\\nS:到临沂，对，对对对对。\\nS:不不不不临猗山西运城的...\nName: text, dtype: object"
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_yes = df[df[\"text.1\"] == \"是\"]\n",
    "df_yes[\"text\"].head()\n"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n"
    }
   }
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}